package com.test.json;

import com.sun.tools.internal.xjc.model.SymbolSpace;

/**
 * 
 *
 * @author Richard - rui.wu@bitmain.com
 * @since 2016年8月6日 
 *
 */
public class StringOption {
	public static void main(String[] args) {
		String str = JsonParserTest.getStatsError();
		str = processString(str);;
		System.out.println(str);
	}

	private static String processString(String str) {
		int index;
		while((index = str.indexOf("}{"))!=-1){
			String str1 = str.substring(0, index+1);
			String str2 = str.substring(index+1,str.length());
			str = str1 + "," + str2;
		}
		return str;
	}
}
